package com.liner.homework.third;

public class Dog extends Animal implements Swim{

    public Dog(String name, int age, String color) {
        super(name, age, color);
    }

    @Override
    void eat() {

        System.out.println(getName() + "it's eating a bone");
    }

    void lookHome() {
        System.out.println(getName() + " looking after his house...");
    }

    @Override
    public void swim() {
        System.out.println(getName() + " swimming...");
    }
}
